<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../back-common.jsp"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
	<%
			Long offset = (Long)request.getAttribute("offset");
	%>	
	<input type="hidden" id="curPageNO"  name="curPageNO" value="<%=request.getAttribute("curPageNO")%>">
       <%@ include file="/WEB-INF/pages/common/messages.jsp"%>
      <display:table name="list" requestURI="${contextPath}/admin/member/right/query" id="item" export="false" class="${tableclass}" style="width:100%">
      <display:column title="顺序" style="width:50px"><%=offset++%></display:column>
      <display:column title="名称 "  style="width:150px"><div title="${item.note}">${item.name}</div></display:column>
      <display:column title="权限名称 " property="protectFunction" style="width:250px"></display:column>
      <display:column title="Label " property="note"></display:column>
      <display:column title="菜单" property="menuId"></display:column>
      <display:column title="用户/角色"  style="width:90px;">
     		 <a href="${contextPath}/admin/member/right/loadUserByFunc?funcId=${item.id}">用户</a> /
      		<a href="${contextPath}/admin/member/right/roles/${item.id}">角色</a>
      </display:column>
	      <display:column title="操作" media="html" style="width:145px">
	    	  <div class="am-btn-toolbar">
				  <div class="am-btn-group am-btn-group-xs">
						<button class="am-btn am-btn-default am-btn-xs am-text-secondary" onclick="updateFuncDialog('${item.id}')"><span class="am-icon-pencil-square-o"></span> 修改</button>
						<button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only" onclick="deleteById('${item.id}')" ><span class="am-icon-trash-o"></span> 删除</button>
				  </div>
				</div>
	      </display:column>
    </display:table>
    <ls:page pageSize="${pageSize }" total="${total}" curPageNO="${curPageNO}" type="default"/>
<%--         <c:if test="${not empty toolBar}"> --%>
<%--             <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> --%>
<%--         </c:if> --%>

